<?php
require("include/top.php");

if(isset($_POST['save'])) {
	require(FORM_PATH."rights.form.php");
}

if(isset($_GET['id'])){
	$usr=new User($_GET['id']);
	$tpl->assign('usr',$usr);
}
$users=User::getRights();
$tpl->assign('users',$users);


$tpl->display("header.tpl");
$tpl->display("menu.tpl");
$tpl->display("rights.tpl");
$tpl->display("footer.tpl");

require("include/bottom.php");	

?>